package Entity;

import java.io.Serializable;

import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class User implements Serializable{
	private String name;
	private String password;
	private int role;
	
	public  User() {
		/*name=null;0
		password=null;
		role = 0;*/
	}
	

	public  User(String name, String pass) {
		this.name= name;
		this.password= pass;
	}
	
	public  User(String name, String pass, int role) {
		this(name,pass);
		this.role=role;
	}
		
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}

}
